<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<meta name="description" content="">
    <meta name="author" content="">
	<title>账单</title>
	<!-- Bootstrap -->
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="css/bill.css">
    <link rel="stylesheet" type="text/css" href="font/iconfont.css">

    <!--[if lt IE 9]>
      <script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
      <script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
    <![endif]-->
</head>
<body>
    <div class="container">
		<header>
            <div class="header-left">返回</div>
            <div class="header-right"></div>
        </header><!-- /header -->
        <div class="main">
            <div class="main-top">
                <div class="child-one">
                    <img src="images/icon1.png" alt="累计总收益">
                    <span id="allInMoney">68798.28</span>
                </div>
                <div class="child-two">
                    <img src="images/icon2.png" alt="累计总营收">
                    <span id="allMoney">68798.28</span>
                </div>
                <div class="child-one">
                    <img src="images/icon3.png" alt="累计总成本">
                    <span id="allOutMoney">68798.28</span>
                </div>
            </div>
            <div class="main-bottom">
                <a href="payment.html" title="">
                    <div class="box-one">
                        <img src="images/btn1.png" alt="">
                        <span>收益付款账单</span>
                    </div>
                </a>
                <a href="yyIncome.html" title="">
                    <div class="box-one">
                        <img src="images/btn2.png" alt="">
                        <span>营业收入明细</span>
                    </div>
                </a>
                <a href="expend.html" title="">
                    <div class="box-one">
                        <img src="images/btn3.png" alt="">
                        <span>成本支出明细</span>
                    </div>
                </a>
            </div>
        </div>
        <!-- <div style="width: 100%;height: 50px;"></div> -->
    	<footer>
    		<ul>
    			<a href="index.html"><li style="border-right: 1px solid #fff;"><i class="iconfont">&#xe633;</i><span>首页</span></li></a>
                <a href="bill.html"><li style="border-right: 1px solid #fff;" class="blue"><i class="iconfont">&#xe754;</i><span>账单</span></li></a>
                <a href="person.html"><li><i class="iconfont">&#xe61a;</i><span>我的</span></li></a>
    		</ul>
    	</footer>
    </div>

</body>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/bill.js"></script>
<script src="js/flexible.js"></script>
<script>
	var id = localStorage.getItem("id");
	$.post(
		rootpath + '/contractMaster/getContractMaster', {
			"id": id,
			"time": ""
		},
		function(msg) {
			console.log(msg[1].id);
			if(msg[1].isActive != 0) {
				//正上方
				layer.msg('你已被管理员禁用，将无权限访问!', {
					offset: 't',
					anim: 6
				});
				localStorage.removeItem("id")
				location.href = "login.html";
				return;
			} else {
				//显示相应的数据
				$("#allInMoney").html(msg[2].allNowPayMoney);
				$("#allMoney").html(msg[2].allNowInMoney);
				$("#allOutMoney").html(msg[2].allNowOutMoney);
			}
		}, "json"
	);
</script>
</html>